<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColSortToExpertsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('experts', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序')->after('strengths');
            $table->timestamp('auth_time')->nullable()->comment('认证时间')->after('sort');
        });

        Schema::table('unit_auth', function(Blueprint $table)
        {
            $table->timestamp('auth_time')->nullable()->comment('认证时间')->after('license_img_id');
        });

        Schema::table('personal_auth', function(Blueprint $table)
        {
            $table->timestamp('auth_time')->nullable()->comment('认证时间')->after('work_img_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
